<?php
use yii\widgets\ActiveForm;
use yii\captcha\Captcha;

$this->title = Yii::$app->params['webname'];
?>
<div class="login-box">
    <div class="login-logo">
        <b style="font-size: 20px"><?= Yii::$app->params['webname']?></b>
    </div><!-- /.login-logo -->
    <div class="login-box-body">
        <p class="login-box-msg text-red"><?php echo current($model->getFirstErrors())?></p>
        <?php $form = ActiveForm::begin(['id' => 'login-form','class'=>'form-horizontal']); ?>    
        <?= $form->field($model, 'username',["template"=>'<div class="form-group has-feedback">
            {input}<span class="glyphicon glyphicon-envelope form-control-feedback"></span></div>'])
            ->textInput(["class"=>"form-control","placeholder"=>"用户名"]);
        ?>          
        <?= $form->field($model, 'password',["template"=>'<div class="form-group has-feedback">
            {input}<span class="glyphicon glyphicon-lock form-control-feedback"></span></div>'])
            ->passwordInput(["class"=>"form-control","placeholder"=>"密码"]);
        ?>
        <div class="row">
            <div class="col-xs-12">
                <button type="submit" class="btn btn-primary btn-block btn-flat">登陆</button>
            </div><!-- /.col -->
        </div>

        <?php ActiveForm::end(); ?>
    </div><!-- /.login-box-body -->
</div><!-- /.login-box -->

<script>
    $(function(){
        $("#forgotpwd").click(function(){
            bootboxAlert("如忘记密码,请联系鸿桥方处理");
        }) ;
    })
</script>